package io.renren.service;

import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.dto.SmallCanteenPurchasemxDTO;
import io.renren.entity.SmallCanteenPurchasemxEntity;

import java.util.List;

/**
 * 小食堂采购明细表
 *
 * @author 翟文闯 619556390@QQ.com
 * @since 1.0.0 2019-11-22
 */
public interface SmallCanteenPurchasemxService extends CrudService<SmallCanteenPurchasemxEntity, SmallCanteenPurchasemxDTO> {

    void deleteOrder(Long dto);
    List<SmallCanteenPurchasemxDTO> selectGyss(Long id);
    List<SmallCanteenPurchasemxDTO> selectGyss2(Long id);

    List<SmallCanteenPurchasemxDTO> selectFoods(long id,long ids);
    List<SmallCanteenPurchasemxDTO> seletGysFood1(long id,long ids);

    void updateUnitPrice(SmallCanteenPurchasemxDTO dto);

    Result updatePhoto(SmallCanteenPurchasemxDTO dto);
    void updateOrder1(long id,long subStutas);
    void updateOrder2(long orderId,long foodId,float purchaseNum);
    void delectOrder(long orderId,long foodId);
}